package com.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.opensymphony.xwork2.util.KeyProperty;

/**
 * Vote entity. @author MyEclipse Persistence Tools
 */

public class Vote implements java.io.Serializable {

	// Fields

	private Integer vid;
	private VoteType voteType;
	private String vtitle;
	private Integer vturnout;
	private Date vcreatetime;
	@KeyProperty("voId")
	private Set<VoteOption> voteOptions = new HashSet();
	
	


	/** default constructor */
	public Vote() {
	}

	// Property accessors

	public VoteType getVoteType() {
		return this.voteType;
	}

	public void setVoteType(VoteType voteType) {
		this.voteType = voteType;
	}

	public Integer getVid() {
		return vid;
	}

	public void setVid(Integer vid) {
		this.vid = vid;
	}

	public String getVtitle() {
		return vtitle;
	}

	public void setVtitle(String vtitle) {
		this.vtitle = vtitle;
	}

	public Integer getVturnout() {
		return vturnout;
	}

	public void setVturnout(Integer vturnout) {
		this.vturnout = vturnout;
	}

	public Date getVcreatetime() {
		return vcreatetime;
	}

	public void setVcreatetime(Date vcreatetime) {
		this.vcreatetime = vcreatetime;
	}

	public Set<VoteOption> getVoteOptions() {
		return voteOptions;
	}

	public void setVoteOptions(Set voteOptions) {
		this.voteOptions = voteOptions;
	}

	
}